package Javafoundation;

import java.io.IOException;

public class Topotest {
    public static void main(String[] args) throws IOException {

        Topo directedGraph = new Topo();
        try{
            directedGraph.topoSort();
        }catch(Exception e){
            System.out.println("该图存在环");
            e.printStackTrace();
        }
    }
}
